﻿namespace Attacher
{
	using System.Windows.Input;

	internal class MainWindowViewModel : PropertyChangedNotifier
	{
		#region Attributes

		private bool isAutoStartEnabled;

		#endregion

		#region Properties

		public bool IsAutoStartEnabled
		{
			get
			{
				return this.isAutoStartEnabled;
			}
			set
			{
				if (this.isAutoStartEnabled != value)
				{
					this.isAutoStartEnabled = value;
					base.OnPropertyChanged("IsAutoStartEnabled");
				}
			}
		}

		public ICommand ExitCommand { get; private set; }

		public ICommand ChangeAutoStartCommand { get; private set; }

		public string HotKeyText { get; private set; }

		#endregion

		#region Public Methods

		public MainWindowViewModel(ICommand exitCommand, ICommand changeAutoStartCommand)
		{
			ParameterChecker.IsNotNull(exitCommand, "exitCommand");
			ParameterChecker.IsNotNull(changeAutoStartCommand, "changeAutoStartCommand");

			this.ExitCommand = exitCommand;
			this.ChangeAutoStartCommand = changeAutoStartCommand;

			this.HotKeyText = "Ctrl + Alt + A"; // Todo: get ths from the actual hotkey
		}

		#endregion
	}
}
